#pragma once

#include "MyTreeCtrl.h"
#include "HwTreeData.h"
// CHwTreeCtrl

class CHwTreeCtrl : public CMyTreeCtrl
{
	DECLARE_DYNAMIC(CHwTreeCtrl)
	enum
	{
		CALL_CHECKED_FUN = 0x01
	};
public:
	CHwTreeCtrl();
	virtual ~CHwTreeCtrl();

	void FillDeviceItem(CHwTreeData& treeData);
	void UpdateNode(ParamItem* pDeviceParams[],  int nDeviceParamsCount, WPARAM wParam, LPARAM lParam);
	void FillParamItem(HTREEITEM pParent, ParamItem* pParamItem[], int nCount, int& i, ParamItem* pParentParamItem);
	void OnChecked(HTREEITEM hItem);
protected:
	DECLARE_MESSAGE_MAP()
};


